<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>追溯查询_深圳成武金石农业开发有限公司</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../lib/layui2/css/layui.css" media="all">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
<script type="text/javascript" src="../lib/html5.js"></script>
<script type="text/javascript" src="../lib/respond.min.js"></script>
<![endif]-->


    <div id="hcvueapp">
        <div class="layui-container">
            <div class="layui-row">
                <!--移动：6/12 | 平板：6/12 | 桌面：4/12   class="layui-col-xs6 layui-col-sm6 layui-col-md4"   -->
                <div class="layui-col-xs5 layui-col-sm5 layui-col-md6">
                    <img src="../img/2.jpg" style="min-width: 300px; width: 100%;" />
                </div>
            </div>
            <br />
            <div class="layui-row">
                <div class="layui-col-xs1 layui-col-sm1 layui-col-md3">&nbsp;</div>
                <div class="layui-col-xs6 layui-col-sm6 layui-col-md3">
                    <input type="tel" name="phone" lay-verify="required" v-model="codeinfo" autocomplete="true" value="" placeholder="请输入有机码" class="layui-input">
                </div>
                <div class="layui-col-xs1 layui-col-sm1 layui-col-md1">&nbsp;</div>
                <div class="layui-col-xs4 layui-col-sm4 layui-col-md3">
                    <button class="layui-btn" onclick="findallinfo()">查询</button>
                </div>
            </div>
        </div>
        <!--     <fieldset class="layui-elem-field layui-field-title" style="margin-top: 10px;">
            <legend>{{message}}</legend>
        </fieldset>-->
        {{showmessage}}
        <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
            <ul class="layui-tab-title">

                <li class="layui-this">基本信息</li>
                <li>种植信息</li>
                <li>加工信息</li>
                <li>运输信息</li>
                <li>证书信息</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">

                    <div class="layui-form layui-form-pane" style="margin: 0px;">
                    <div class="layui-form-item" style="margin: 0px;">
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">生产任务</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="baskinfo.taskno" class="layui-input">
                                </div>
                            </div>
                        <!--    <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">种植信息</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="baskinfo.zzsourepc" class="layui-input">
                                </div>
                            </div>--><div class="layui-inline" style="margin: 0px;">
                          <label class="layui-form-label">种植区域</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="baskinfo.areaname" class="layui-input">
                                </div></div>
                        </div>    
                        <div class="layui-form-item" style="margin: 0px;">
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">品种</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="baskinfo.tasksctypename" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">种植基地</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="baskinfo.databranchname" class="layui-input">
                                </div>
                            </div>

                        </div>
                      
                        <div class="layui-form-item" style="margin: 0px;">
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">计划时间</label>
                                <div class="layui-input-block">
                                    <div v-if="baskinfo.taskstarttime!=null">
                                        <input type="text" autocomplete="off" v-model="baskinfo.taskstarttime.Value" class="layui-input">
                                    </div>
                                    <div v-else>
                                        <input type="text" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">计划面积</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="baskinfo.taskmj" class="layui-input">
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
                <div class="layui-tab-item">
                    <div class="layui-form layui-form-pane" style="margin: 0px;">
                        <!-- 作业-->
                        <div class="layui-form-item" v-for="taskinfo in listinfo.review_task_work">
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">作业类型</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.infotypename" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">作业地块</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.infofv1" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">时间</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.dataaddtime.Value" class="layui-input">
                                </div>
                            </div>

                        </div>
                        <!--采摘-->
                        <div class="layui-form-item" v-for="taskinfo in listinfo.review_task_work_get">
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">作业类型</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.infotypename" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">作业地块</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.infofv1" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">时间</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.dataaddtime.Value" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">数量</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.infonv3" class="layui-input">
                                </div>
                            </div>
                        </div>
                    </div>

                </div>
                <div class="layui-tab-item">

                    <div class="layui-form layui-form-pane" style="margin: 0px;">

                        <!--采摘入库-->
                        <div class="layui-form-item" v-for="taskinfo in listinfo.review_task_work_instore">
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">操作</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.inouttype" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">时间</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.dataaddtime.Value" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">数量</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.storeall" class="layui-input">
                                </div>
                            </div>
                        </div>
                        <!--采摘自加工出库-->
                        <div class="layui-form-item" v-for="taskinfo in listinfo.review_task_work_selfworkoutstore">
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">操作</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.inouttype" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">时间</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.dataaddtime.Value" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">数量</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.storeall" class="layui-input">
                                </div>
                            </div>
                        </div>
                        <!--采摘自加工回库-->
                        <div class="layui-form-item" v-for="taskinfo in listinfo.review_task_work_selfworkbackstore">
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">操作</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.inouttype" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">时间</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.dataaddtime.Value" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">数量</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.storeall" class="layui-input">
                                </div>
                            </div>
                        </div>

                        <!--？基地库出库运输？-->
                        <div class="layui-form-item" v-for="taskinfo in listinfo.review_task_work_outstore">
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">操作</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.inouttype" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">时间</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.dataaddtime.Value" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">数量</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.storeall" class="layui-input">
                                </div>
                            </div>
                        </div>
                           <!--？中心库运输入库？-->
                        <div class="layui-form-item" v-for="taskinfo in listinfo.review_task_wayto_center">
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">操作</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.inouttype" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">时间</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.dataaddtime.Value" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">数量</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.storeall" class="layui-input">
                                </div>
                            </div>
                        </div>

                        <!--？？-->
                        <div class="layui-form-item" v-for="taskinfo in listinfo.review_task_center_getwork">
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">操作</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.inouttype" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">时间</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.dataaddtime.Value" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">数量</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.storeall" class="layui-input">
                                </div>
                            </div>
                        </div>

                        <div class="layui-form-item" v-for="taskinfo in listinfo.review_task_center_work_shutok">
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">操作</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" value="贴码记录信息" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">时间</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.dataaddtime.Value" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">数量</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.storeall" class="layui-input">
                                </div>
                            </div>
                        </div>


                        <div class="layui-form-item" v-for="taskinfo in listinfo.review_task_center_work_codeok">
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">操作</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.inouttype" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">时间</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.dataaddtime.Value" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">数量</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.storeall" class="layui-input">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-tab-item">
                    <div class="layui-form layui-form-pane" style="margin: 0px;">
                        <div class="layui-form-item" v-for="taskinfo in listinfo.review_task_center_work_ok_out">
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">操作</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.inouttype" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">时间</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.dataaddtime.Value" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin: 0px;">
                                <label class="layui-form-label">数量</label>
                                <div class="layui-input-block">
                                    <input type="text" autocomplete="off" v-model="taskinfo.storeall" class="layui-input">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-tab-item">
                         <div v-if="baskimg.imgurl1!=null">
                        <div>  {{baskimg.addinfoname1}}  </div>
                      
                        <img  :src="baskimg.imgurl1"  style=" max-width: 100%;height: auto;display: block; " :alt="baskimg.addinfoname1">
                    </div>
                    <div v-if="baskimg.imgurl2!=null">    <div> {{baskimg.addinfoname2}}</div>
                          <img  :src="baskimg.imgurl2"  style=" max-width: 100%;height: auto;display: block; " :alt="baskimg.addinfoname2"></div>
                    <div v-if="baskimg.imgurl3!=null">    <div> {{baskimg.addinfoname3}}</div>
                         <img  :src="baskimg.imgurl3"  style=" max-width: 100%;height: auto;display: block; " :alt="baskimg.addinfoname3"></div>
                    <div v-if="baskimg.imgurl4!=null">    <div> {{baskimg.addinfoname4}} </div>
                         <img  :src="baskimg.imgurl4"  style=" max-width: 100%;height: auto;display: block; " :alt="baskimg.addinfoname4"></div>
                    <div v-if="baskimg.imgurl5!=null">    <div> {{baskimg.addinfoname5}} </div>
                         <img  :src="baskimg.imgurl5"  style=" max-width: 100%;height: auto;display: block; " :alt="baskimg.addinfoname5"></div>
                    <div v-if="baskimg.imgurl6!=null">    <div> {{baskimg.addinfoname6}}</div>
                         <img  :src="baskimg.imgurl6"  style=" max-width: 100%;height: auto;display: block; " :alt="baskimg.addinfoname6"></div>
                    <div v-if="baskimg.imgurl7!=null">    <div> {{baskimg.addinfoname7}} </div>
                         <img  :src="baskimg.imgurl7"  style=" max-width: 100%;height: auto;display: block; " :alt="baskimg.addinfoname7"></div>
                    <div v-if="baskimg.imgurl8!=null">    <div> {{baskimg.addinfoname8}} </div>
                         <img  :src="baskimg.imgurl8"  style=" max-width: 100%;height: auto;display: block; "  :alt="baskimg.addinfoname8"></div>
               
                </div>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="../js/vue.min.js"></script>

    <script>

        var hcvueapp = new Vue({
            el: '#hcvueapp',
            data: {
                message: '绿色健康生活，源于真诚！',
                showmessage: '',
                codeinfo: '',
                baskinfo: {},//计划信息
                baskimg: {},
                listinfo: []
            },
            methods: {

            }
        })
    </script>
    <script src="../hcjsui/Scripts/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script src="../lib/layui2/layui.js" charset="utf-8"></script>
    <script src="../hcjsui/js/_Define.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/hcui.js"></script>
    <!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
    <script type="text/javascript">
        var spPageUrl = "../ashx/spopen.ashx";//后台统一页面
        layui.use('element', function () {
            var $ = layui.jquery
            , element = layui.element; //Tab的切换功能，切换事件监听等，需要依赖element模块
        });
        var whereaddinfo = "";
        function findallinfo() {
            $.ajax({
                type: "post",
                url: "../ashx/ReViewService.ashx",
                dataType: "json",
                data: {
                    "action": "backtimereview",
                    "codeinfo": hcvueapp.codeinfo
                },
                async: true,
                cache: false,
                error: function (error) {

                },
                success: function (data) {
                    //console.log(data);
                    //var result = JSON.parse(data);
                    //console.log(result);
                    hcvueapp.listinfo = data;
                    console.log(hcvueapp.listinfo);
                    if (hcvueapp.listinfo == null || hcvueapp.listinfo.review_task_center_work_shutok.length == 0) {
                        hcvueapp.showmessage = "抱歉，没有找到对应的有机码信息！";
                        hcvueapp.baskinfo = {};
                    }
                    else {

                        hcvueapp.showmessage = "";
                        hcvueapp.baskinfo = hcvueapp.listinfo.review_task[0];
                        getspimg(hcvueapp.baskinfo.tasksctype);
                    }

                    // console.log(hcvueapp.listinfo);

                }
            });
        }
        //根据产品ID获取图片信息
        function getspimg(spid) {
            hcdoselbyPost("*"
                + ",(select  fsaveurl from sysfileinfo where id=addinfo1 ) as   imgurl1"
                + ",(select  fsaveurl from sysfileinfo where id=addinfo2 ) as   imgurl2"
                + ",(select  fsaveurl from sysfileinfo where id=addinfo3 ) as   imgurl3"
                + ",(select  fsaveurl from sysfileinfo where id=addinfo4 ) as   imgurl4"
                + ",(select  fsaveurl from sysfileinfo where id=addinfo5 ) as   imgurl5"
                + ",(select  fsaveurl from sysfileinfo where id=addinfo6 ) as   imgurl6"
                + ",(select  fsaveurl from sysfileinfo where id=addinfo7 ) as   imgurl7"
                + ",(select  fsaveurl from sysfileinfo where id=addinfo8 ) as   imgurl8"
                + ",(select  fsaveurl from sysfileinfo where id=addinfo9 ) as   imgurl9"
                + ",(select  fsaveurl from sysfileinfo where id=addinfo10 ) as   imgurl10"
                ,
                "yw_baseinfo", "id=" + spid + "", "", "", "id",
                 function (backd) {
                     var i = 0;
                     hcvueapp.baskimg = backd[0];

                     console.log(hcvueapp.baskimg);

                     //CC0000000302
                 });
        }
        $(function () {

        });
    </script>

</body>
</html>
